package com.qcby.Entity;

import java.util.Date;

public class TrainOrder {
    private Integer id;
    private Integer trainNumId;
    private Integer fromStationId;
    private Integer toStationId;
    private Integer fromStationIndex;
    private Integer toStationIndex;
    private Date startTime;
    private Date endTime;
    private Integer carriageNum;
    private Integer seatNum;
    private Integer travellerId;
    private Integer userId;
    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTrainNumId() {
        return trainNumId;
    }

    public void setTrainNumId(Integer trainNumId) {
        this.trainNumId = trainNumId;
    }

    public Integer getFromStationId() {
        return fromStationId;
    }

    public void setFromStationId(Integer fromStationId) {
        this.fromStationId = fromStationId;
    }

    public Integer getToStationId() {
        return toStationId;
    }

    public void setToStationId(Integer toStationId) {
        this.toStationId = toStationId;
    }

    public Integer getFromStationIndex() {
        return fromStationIndex;
    }

    public void setFromStationIndex(Integer fromStationIndex) {
        this.fromStationIndex = fromStationIndex;
    }

    public Integer getToStationIndex() {
        return toStationIndex;
    }

    public void setToStationIndex(Integer toStationIndex) {
        this.toStationIndex = toStationIndex;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getCarriageNum() {
        return carriageNum;
    }

    public void setCarriageNum(Integer carriageNum) {
        this.carriageNum = carriageNum;
    }

    public Integer getSeatNum() {
        return seatNum;
    }

    public void setSeatNum(Integer seatNum) {
        this.seatNum = seatNum;
    }

    public Integer getTravellerId() {
        return travellerId;
    }

    public void setTravellerId(Integer travellerId) {
        this.travellerId = travellerId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "TrainOrder{" +
                "id=" + id +
                ", trainNumId=" + trainNumId +
                ", fromStationId=" + fromStationId +
                ", toStationId=" + toStationId +
                ", fromStationIndex=" + fromStationIndex +
                ", toStationIndex=" + toStationIndex +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", carriageNum=" + carriageNum +
                ", seatNum=" + seatNum +
                ", travellerId=" + travellerId +
                ", userId=" + userId +
                ", status=" + status +
                '}';
    }
}
